package com.icode.chat.message;

/**
 * User: alexz
 * Date: 14-8-6
 * Time: 下午2:07
 */
public class ParticipateMessage implements Message {
    private Integer chatterId;
    private String chatterName;
    /**
     * true represents join the chat room
     * false represents quit the chat room
     *
     */
    private boolean join;

    public ParticipateMessage(Integer chatterId, String chatterName, boolean join) {
        this.chatterId = chatterId;
        this.chatterName = chatterName;
        this.join = join;
    }

    public Integer getChatterId() {
        return chatterId;
    }

    public String getChatterName() {
        return chatterName;
    }

    public MessageType getMessageType() {
        return MessageType.PARTICIPATE;
    }

    public boolean isJoin() {
        return join;
    }
}
